﻿using System;

namespace BaseSyntax.Event.DefineEvent
{
	public class RunEvent:ITest
	{
		public void Test()
		{
			Connection connection = new Connection();
			
			Display display = new Display();
			connection.listener += display.DisplayMsg;
			connection.listener += display.DisplayMsg1;

			connection.Connect();
			Console.ReadKey();
		}
	}
}